From: Georges Basile Stavracas Neto Date: Tue, 12 Jul 2022 16:37:56 +0000 (-0300) Subject: accessDialog: Allow body label to wrap lines X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~252 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=19f11ae3289e5e3279cefb1cd2c144f6bd05787a;p=gnome-shell.git accessDialog: Allow body label to wrap lines Allow the body label of the access dialog to wrap, and avoid ellipsizing it. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5286 Part-of: --- diff --git a/js/ui/accessDialog.js b/js/ui/accessDialog.js index 393315d45..a162d6501 100644 --- a/js/ui/accessDialog.js +++ b/js/ui/accessDialog.js @@ -1,5 +1,5 @@ /* exported AccessDialogDBus */ -const { Clutter, Gio, GLib, GObject, Shell, St } = imports.gi; +const { Clutter, Gio, GLib, GObject, Pango, Shell, St } = imports.gi; const CheckBox = imports.ui.checkBox; const Dialog = imports.ui.dialog; @@ -62,6 +62,8 @@ class AccessDialog extends ModalDialog.ModalDialog { text: body, x_align: Clutter.ActorAlign.CENTER, }); + bodyLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + bodyLabel.clutter_text.line_wrap = true; content.add_child(bodyLabel); this.addButton({